package com.spzx.order.domain.vo;

import com.spzx.order.api.domain.OrderItem;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * ClassName: TradeVo
 * Package: com.spzx.order.domain
 * Description:
 *
 * @Author 咚咚小圆帽
 * @Create 2025/3/28 20:38
 * @Version 1.0
 */
@Data
@Schema(description = "结算实体类")
public class TradeVo {

    @Schema(description = "结算总金额")
    private BigDecimal totalAmount;

    @Schema(description = "结算商品列表")
    private List<OrderItem> orderItemList;

    @Schema(description = "交易号")
    private String tradeNo;

    @Schema(description = "是否是立即购买")
//    private boolean isBuy;
    //用包装类，可以这么写，给数据赋初始值，默认不是立即购买
    private Boolean isBuy = false;
}